package com.xmb.wcapi.constant;

public enum WarehouseStatusConstant {

    ok("ok", "外验ok"),

    error("error", "不良品重工"),

    wait("wait", "待验");

    public String code;

    public String message;

    WarehouseStatusConstant(String code, String message){
        this.code = code;
        this.message = message;
    }

    public static String getMessage(String code) {
        for (WarehouseStatusConstant c : WarehouseStatusConstant.values()) {
            if (c.getCode().equals(code)) {
                return c.message;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
